home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
inn1.000
/
inn1.4sec-linux-src.tar
/
inn
/
include
/
logging.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-13
|
1KB
|
36 lines
/* $Revision: 1.8 $
**
** The logging levels in syslog(3) are confusing. We use only three,
** and give them more meaningful names. See section 2 in config.dist.
*/
#include <syslog.h>
/*
** 2. LOGGING LEVELS
*/
/* Facility innd should log under. */
/* =()<#define LOG_INN_SERVER @<LOG_INN_SERVER>@>()= */
#define LOG_INN_SERVER LOG_NEWS
/* Facility all other programs should log under. */
/* =()<#define LOG_INN_PROG @<LOG_INN_PROG>@>()= */
#define LOG_INN_PROG LOG_NEWS
/* Flags to use in opening the logs; some programs add LOG_PID. */
/* =()<#define L_OPENLOG_FLAGS @<L_OPENLOG_FLAGS>@>()= */
#define L_OPENLOG_FLAGS (LOG_CONS | LOG_NDELAY)
/* Fatal error, program is about to exit. */
/* =()<#define L_FATAL @<L_FATAL>@>()= */
#define L_FATAL LOG_CRIT
/* Log an error that might mean one or more articles get lost. */
/* =()<#define L_ERROR @<L_ERROR>@>()= */
#define L_ERROR LOG_ERR
/* Informational notice, usually not worth caring about. */
/* =()<#define L_NOTICE @<L_NOTICE>@>()= */
#define L_NOTICE LOG_INFO
/* A protocol trace. */
/* =()<#define L_TRACE @<L_TRACE>@>()= */
#define L_TRACE LOG_DEBUG
/* All incoming control commands (ctlinnd, etc). */
/* =()<#define L_CC_CMD @<L_CC_CMD>@>()= */
#define L_CC_CMD LOG_INFO